package com.cloudy.impl;

import java.io.IOException;
import java.net.HttpURLConnection;


import org.xml.sax.SAXException;

import javax.xml.bind.JAXBException;

import static com.cloudy.utility.CloudyUtility.*;


public class SuccessHandlerWithResponse extends SuccessHandler{

	@SuppressWarnings("unchecked")
	@Override
	protected <T> T getTheResponseMessage(HttpURLConnection httpConnection)
            throws IOException, JAXBException {
		T t = (T)unmarshalTheResponse(httpConnection.getInputStream());
		return t;
	}

}
